<?php 
		
	$pid = explode(',', $model->media_cid);
	$pid = $pid[0];
	$menu = array_reverse(Category::model()->generateBreadcrumbs($pid,'list'));
	
	$this->breadcrumbs = array_merge($this->breadcrumbs,$menu);
	$this->breadcrumbs = array_merge($this->breadcrumbs,array($model->media_name));
		
	$this->pageTitle = Category::model()->generatePageTitle(array_reverse($this->breadcrumbs,'_')).Yii::app()->name;
		
?>



<div class="span-15 colborder">

	<script type="text/javascript">
	<!--
	$(function(){
	//	$("a[rel=colorbox]").colorbox({
	//		'maxWidth':'95%',
	//		'maxHeight':'95%',
	//		'href':$(this).find("img").attr("src")
	//	});
	});
	
	function productShow(){	
		$("a[rel=colorbox]").colorbox({
			'maxWidth':'95%',
			'maxHeight':'95%'
		});
	}

//	function ShowInfo(object){
//		var html = object.find("a").attr("name");
//		if(object.find(".info").length == 0){
//			object.append("<div class=\"info\"></div>").find(".info")
//			.html(html);
//
//		}
//		object.find(".info").hide()
//		.css({			
//			"margin-top":"10px",
//			"position":"relative",
//			"background":"black",
//			"bottom":"40px;",	
//			"top":"-140px",			
//			"padding":"10px",
//			"textAlign":"left",
//			"height":"145px",
//			"opacity":.5
//			
//		})		
//		.animate({	
//			"opacity":.8
//			
//		},250).stop().slideDown();
//
//	}
//
//	function HideInfo(object){
//		object.find(".info")
//		.animate({
//			"opacity":.2
//		},2500)
//		.stop().slideToggle().stop();
//	}
	
	//-->
	</script>
	
	
	<ul id="recentWorks" style="margin-left:40px;" >
		<?php	foreach($dataProvider as $data):?>			
			<?php $this->renderPartial('_pview',array('data'=>$data));?>
		<?php endforeach;?>
	</ul>
	<?php $this->widget('ext.paginate.yiinfinite-scroll.YiinfiniteScroller', array(
	    'contentSelector' => '#recentWorks',
	    'itemSelector' => 'li.product-item-view',
	    'loadingText' => 'Loading...',
	    'donetext' => Yii::t('common','This is the end... my only friend, the end'),
	    'pages' => $pages,
	)); ?>
	
	<?php 
	 	//Create an instance of ColorBox
	 	$this->widget('application.extensions.box.colorbox.colorboxWidget');
	
	?>
</div>
<div class="span-7">	
	<div class="arc span-7">
		<?php //$this->widget('application.components.work.worksProfile',array('id'=>$_GET['id']));?>		
	
	</div>
</div>



